package com.jason.java.lib;

/**
 * Description:Solution
 *
 * @author jason
 * @create 2020/9/4 15:06
 */
public class Solution {

  public class Father{
    public String name = "father";

    public String getName() {
      return name;
    }
  }

  public class Son extends Father {
    public String name = "son";

    public String getName() {
      return name;
    }
  }


  public static void main(String[] args) {
    Solution solution = new Solution();
    Father father = solution.new Son();
    System.out.println(father.getName());
  }
}
